API Documentation
ImageManager.h
1 // ImageManager.h
3 //
5 
6 namespace nkWinUi
7 {
11  class ImageManager final : public nkCommon::MaybeSingletonClass<ImageManager>
12  {
13  public :
14 
15  // Memory management
29  Image* get (const nkMemory::StringView& name) const ;
38  Image* getByIndex (unsigned int index) const ;
45  void rename (const nkMemory::StringView& oldName, const nkMemory::StringView& newName) ;
51  void erase (const nkMemory::StringView& name) ;
52  } ;
53 }
nkWinUi::ImageManager::erase
void erase(const nkMemory::StringView &name)
nkWinUi::Image
Abstracts an image to be used within the component.
Definition: Image.h:12
nkWinUi::ImageManager::getByIndex
Image * getByIndex(unsigned int index) const
nkWinUi::ImageManager
Manages the images in the component.
Definition: ImageManager.h:12
nkWinUi::ImageManager::rename
void rename(const nkMemory::StringView &oldName, const nkMemory::StringView &newName)
nkWinUi::ImageManager::createOrRetrieve
Image * createOrRetrieve(const nkMemory::StringView &name)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::ImageManager::get
Image * get(const nkMemory::StringView &name) const
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7